package com.ruoyi.game.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房卡流水对象 game_roomcard_txn
 * 
 * @author ruoyi
 * @date 2025-04-18
 */
public class GameRoomcardTxn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流水ID */
    private Long id;

    /** 玩家ID */
    @Excel(name = "玩家ID")
    private Long playerId;

    /** 后台管理员(sys_user.id)，仅充值时有值 */
    @Excel(name = "后台管理员(sys_user.id)，仅充值时有值")
    private Long adminId;

    /** 房间ID(扣卡场景) */
    @Excel(name = "房间ID(扣卡场景)")
    private Long roomId;

    /** 流水类型 */
    @Excel(name = "流水类型")
    private String txnType;

    /** 正数=增加, 负数=扣除 */
    @Excel(name = "正数=增加, 负数=扣除")
    private Long amount;

    /** $column.columnComment */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPlayerId(Long playerId)
    {
        this.playerId = playerId;
    }

    public Long getPlayerId() 
    {
        return this.playerId;
    }

    public void setAdminId(Long adminId) 
    {
        this.adminId = adminId;
    }

    public Long getAdminId() 
    {
        return adminId;
    }

    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }

    public void setTxnType(String txnType) 
    {
        this.txnType = txnType;
    }

    public String getTxnType() 
    {
        return txnType;
    }

    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("playerId", getPlayerId())
            .append("adminId", getAdminId())
            .append("roomId", getRoomId())
            .append("txnType", getTxnType())
            .append("amount", getAmount())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
